<div class="cl pd-5 bg-1 bk-gray mb-10">
  <a class="btn btn-primary radius" onclick="layer_show('添加广告位','__MODULE__/Ad/posiAddEdit','600','450')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加广告位</a>
  <span class="r mt-3">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
    <tr class="text-c">
      <th width="40">编号</th>
      <th width="200" id="po_name" onClick="tab_sort(this)"><div class="">广告位名称</div></th>
      <th width="80" id="po_width" onClick="tab_sort(this)"><div class="">广告位宽度</div></th>
      <th width="80" id="po_height" onClick="tab_sort(this)"><div class="">广告位高度</div></th>
      <th width="250" id="po_desc" onClick="tab_sort(this)"><div class="">广告位描述</div></th>
      <th width="50" id="po_open" onClick="tab_sort(this)"><div class="">状态</div></th>
      <th width="90">操作</th>
    </tr>
  </thead>
  <tbody>
    <volist name='list' id='vo'>
    <tr class="text-c">
      <td>{$i}</td>
      <td>{$vo.po_name}</td>
      <td>{$vo.po_width}</td>
      <td>{$vo.po_height}</td>
      <td>{$vo.po_desc}</td>
      <td><img width="20" height="20" src="__PUBLIC__/admin/images/<if condition='($vo[po_open] eq 1)'>y.png<else />n.png</if>" onclick="changeTableVal('ad_position','po_id={$vo.po_id}','po_open',this)"/></td>
      <td class="td-manage">
        <a style="text-decoration:none" href="__MODULE__/Ad/adList?pid={$vo.po_id}" title="查看广告"><i class="Hui-iconfont">&#xe695;</i></a>
        <a onclick="layer_show('编辑广告位','__MODULE__/Ad/posiAddEdit?pid={$vo.po_id}','600','450')" href="javascript:;" class="ml-5"><i class="Hui-iconfont">&#xe6df;</i></a>
      </td>
    </tr>
    </volist>
  </tbody>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>
